import $http from '@/common/api/request.js'
const preUrl = '/flist'
export default{
	getAllTopTypeData(){
		return $http.request({
			url: preUrl +'/getAllTopTypes',
			method:'get'
			});
	},
	getDataById(id){
		return $http.request({
			url: preUrl + `/getChildrenTypes/${id}`,
			method:'get'
			});
	},
	getTypeDataLike(name){
		return $http.request({
			url: `/goodType/like`,
			method:'post',
			data: name
		});
	},
}